<?php
require_once 'database/DatabaseConnection.php';

class DatabaseConnectionsTest {
	
	public function __construct(){
		
	}
	
	/**
	 * Tests the database connection
	 */
	public function testDatabaseConnection(){
		$database = new DatabaseConnection();
		$database->connect();
		$connection = $database->getConnection();
		if(empty($connection) || !$database->getDatabaseConnected()){
			return false;
		}
		$database->disconnect();
		$connection = $database->getConnection();
		if(!empty($connection)){
			return false;
		}
		return true;
	}
}